package com.dkd.client.order.fallback;

import com.dkd.client.order.OrderClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class OrderClientFallback implements FallbackFactory<OrderClient> {

    @Override
    public OrderClient create(Throwable throwable) {
        log.info("查询订单状态异常");
        return new OrderClient() {
            @Override
            public List<Long> getByBId(Long businessId) {
                return null;
            }
        };
    }
}
